#pragma once

#include "ImgProCfg.h"
#include "ImgAnalyCfg.h"

#ifdef _DD_ImageAnaly_
#define DD_ImageAnaly_Mode __declspec(dllexport)
#else
#define DD_ImageAnaly_Mode __declspec(dllimport)
#endif 

////////////////////////////////////////////////////////
#ifndef _DD_ImageAnaly_
#ifdef _DEBUG   
#pragma comment(lib, "ImageAnalyd.lib") 
#else
#pragma comment(lib, "ImageAnaly.lib")
#endif
#endif 

class xhImageAnaly;
class DD_ImageAnaly_Mode DD_ImageAnaly
{
public:
	DD_ImageAnaly(void);
	~DD_ImageAnaly(void);

public:
	//init
	int Initialize();
	//set parent hwnd
	int SetHwnd(HWND hWnd = NULL);

public:
	//standard iamge
	int LoadStdFile(char *pFileName);
	//
	int SetStdImgBuffer(zkImgBitInfo *pImgInfo);
	//
	int StdImgOperate(DWORD dwAnalyType,void *pVoid = NULL);

public:
	//To be Checked image
	int SetChkImgBuffer(zkImgBitInfo *pImgInfo);
	//
	int ChkImgOperate(DWORD dwAnalyType,void *pVoid = NULL);


public:
	int ImgAnaly();


public:
	//draw data
	int	Draw(void *pVoid = NULL);
	int ImageCtrl(DWORD dwType,void *pVoid = NULL);

private:
	xhImageAnaly *m_pxhImageAnaly;

};
